projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
543eae0
)
More of the same
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 22 Mar 2015 19:14:42 +0000
(15:14 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 22 Mar 2015 19:14:42 +0000
(15:14 -0400)
A similar case in GtkIconHelper. Here we were confusing ourselves,
and compared a icon_size against -1, although the variable is
never set to -1.
gtk/gtkiconhelper.c
patch
|
blob
|
history
diff --git
a/gtk/gtkiconhelper.c
b/gtk/gtkiconhelper.c
index b9b88ec81e5d255638583ef2dcfaf160465bf5d8..7d42cb83f581e0779ed2b2c61d700c07dc33aaf1 100644
(file)
--- a/
gtk/gtkiconhelper.c
+++ b/
gtk/gtkiconhelper.c
@@
-876,7
+876,7
@@
_gtk_icon_helper_get_size (GtkIconHelper *self,
width = gdk_pixbuf_animation_get_width (self->priv->animation);
height = gdk_pixbuf_animation_get_height (self->priv->animation);
}
- else if (self->priv->icon_size !=
-1
)
+ else if (self->priv->icon_size !=
GTK_ICON_SIZE_INVALID
)
{
ensure_icon_size (self, context, &width, &height);
}